package com.scpii.universal.service;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.scpii.universal.hibernate.dao.BaseDao;
import com.scpii.universal.hibernate.entity.EnterpriseTab;
import com.scpii.universal.hibernate.intface.BaseInterface;
import com.scpii.universal.util.SpringBeanFactory;

public class EnterpriseTabService implements BaseInterface<EnterpriseTab> {
	private static final Logger log = LoggerFactory
			.getLogger(EnterpriseTabService.class);

//	private BaseDao<EnterpriseTab> enterpriseTabDao = SpringBeanFactory.enterpriseTabDao;
	private BaseDao<EnterpriseTab> enterpriseTabDao;
	
	public EnterpriseTab get(Integer id) throws Exception {
		return enterpriseTabDao.get(id);
	}

	public List<EnterpriseTab> getAll() throws Exception {
		return enterpriseTabDao.getAll();
	}

	public EnterpriseTab get(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public List<EnterpriseTab> getList(String propertyName, Object value)
			throws Exception {
		return null;
	}

	public Long getTotalCount() throws Exception {
		return null;
	}

	public void save(EnterpriseTab obj) throws Exception {

	}

	public void update(EnterpriseTab obj) throws Exception {

	}

	public void delete(EnterpriseTab obj) throws Exception {

	}

	public void delete(Integer id) throws Exception {

	}

	public List<EnterpriseTab> hqlGetList(String hql,
			Map<String, Object> argsMap) throws Exception {
		return enterpriseTabDao.hqlGetList(hql, argsMap);
	}

	public void hqlUpdate(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		enterpriseTabDao.hqlUpdate(namedHqlQuery, argsMap);
	}

	public Long hqlGetNums(String namedHqlQuery, Map<String, Object> argsMap)
			throws Exception {
		return enterpriseTabDao.hqlGetNums(namedHqlQuery, argsMap);
	}

	public List<EnterpriseTab> sqlGetList(String sqls,
			Map<String, Object> argsMap) throws Exception {
		return enterpriseTabDao.sqlGetList(sqls, argsMap);
	}

	public void sqlUpdate(String sqls, Map<String, Object> argsMap)
			throws Exception {
		enterpriseTabDao.sqlUpdate(sqls, argsMap);
	}

	public Long sqlGetNum(String sqls, Map<String, Object> argsMap)
			throws Exception {
		return enterpriseTabDao.sqlGetNum(sqls, argsMap);
	}

	//Setter
	public void setEnterpriseTabDao(BaseDao<EnterpriseTab> enterpriseTabDao) {
		this.enterpriseTabDao = enterpriseTabDao;
	}
}